package com.huangkailong.designpattern.builder;

/**
 * 建造者模式测试.
 *
 * @author huangkl
 * @since 1.0.0
 */
public class Client {
    /**
     * main 方法.
     */
    public static void main(String[] args) {
        UserInfo userInfo = UserInfo.builder()
            .username("test username")
            .password("test password")
            .age(18)
            .email("123456@qq.com")
            .phone("123455678")
            .address("test address")
            .build();
        System.out.println(userInfo);
    }
}
